home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr22 / gnplt.zip / ANIMATE.DEM < prev    next >
Text File  |  1993-05-11  |  850b  |  33 lines

  1. #
  2. #    demo to rotate whale image
  3. #    Where gnuplot.rot is a gnuplot command file containing something like
  4. #
  5. #      zrot=(zrot+10)%360
  6. #      set view xrot,zrot
  7. #      replot
  8. #      reread
  9. #
  10. #    The 'reread' command causes the current gnu command file to be reset 
  11. #    to its starting point before further commands are read from it.  Since
  12. #    the 'reread' command is in 'gnuplot.rot', the above four commands are
  13. #    repeated indefinitely, causing the image to rotate about the Z axis.
  14. #
  15. set parametric
  16. set hidden3d
  17. set nokey
  18. set xrange [0:8]
  19. set yrange [-4:4]
  20. set zrange [-2:2]
  21. set data style line
  22. set title "Demo of animation capability - Digitized Blue Whale"
  23. xrot=60
  24. zrot=0
  25. splot "whale.dat"
  26. pause -1 "Under MS-DOS, a carriage return is needed to invoke reread"
  27. load "gnuplot.rot"
  28. set title ""
  29. set autosc
  30. set nohidden
  31. set nopara
  32. set key
  33.